﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QSharp.Shader.Graphics.Base.Optics
{
    public class PixelColor8Bit
    {
        protected byte _red;
        protected byte _green;
        protected byte _blue;
        protected byte _alpha;

        public byte Red
        {
            get { return _red; }
        }

        public byte Green
        {
            get { return _green; }
        }

        public byte Blue
        {
            get { return _blue; }
        }

        public byte Alpha
        {
            get { return _alpha; }
        }

        public PixelColor8Bit(byte r, byte g, byte b, byte a)
        {
            _red = r;
            _green = g;
            _blue = b;
            _alpha = a;
        }

        public PixelColor8Bit(byte r, byte g, byte b)
            : this(r, g, b, 0xff)
        {
        }
    }
}
